<?php
include_once("../module/checkA.php");
include_once("../../config.php");
$plate=select_one_line_all_items($table_Prefix."plate","mid = 'finance'");
?>


<?
//用来判断当前系统属于什么板块
$system_part = $plate['mid'];
include_once("detail-list-function.php");
?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
	<!--網站語言--><meta http-equiv="Content-Language" content="zh-cn">
	<!--網站編碼--><meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
	<title><?php include '../coresection/title.php'; ?></title>
	<link rel="Shortcut Icon" href="../coresection/logoicon.ico">


</head>

<body style="display:none">


<?php
$new_detail_nid=$_REQUEST['nid'];
$new_detail_status=$_REQUEST['status'];

if($new_detail_status=="待审核"){$new_detail_status="过账";}
else{$new_detail_status="待审核";}
?>


<?
//设置需要搜索的表格的前缀后缀
$table_suffix=$plate['table_suffix'];
$table=$table_Prefix.$table_suffix;
//设置需要搜索的表格的前缀后缀

?>



<?php
$sql = "update $table SET status= '$new_detail_status' where nid = $new_detail_nid";
$query=mysql_query($sql) or die ('更新审核状态失败');
mysql_close($con);

?>


<?

$nowpageid = $_GET["nowpageid"];
if($nowpageid==1){
	$url = "detail-list.php?nav-itemed=finance";
}
else{
	$url = "detail-list.php?nowpageid=".$nowpageid."&sortby=nid&nid=&now_extender=finance&nav-itemed=finance";
}
?>







<script type="text/javascript">
	document.location.href = "<?echo $url?>";

</script>

<?php include ROOT_PATH_ . "/controller/common/module/footer.php"; ?> </body>